package com.cssnj.portal.domain.manage;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * 接入应用技术说明附件
 *
 * @author Arthur
 * @version 1.0
 * @since 2018/9/11 22:02
 */
@Entity
@Table(name = "YY_GN_JR_JSSM")
@IdClass(YyGnJrJsSmEntityPK.class)
public class YyGnJrJsSmEntity {
    private String gnId;
    private String fjmc;
    private String fjlj;
    private Timestamp xgSj;
    private Timestamp lrSj;
    private String xgryId;
    private String lrryId;

    @Id
    @Column(name = "GN_ID")
    public String getGnId() {
        return gnId;
    }

    public void setGnId(String gnId) {
        this.gnId = gnId;
    }

    @Basic
    @Column(name = "FJMC")
    public String getFjmc() {
        return fjmc;
    }

    public void setFjmc(String fjmc) {
        this.fjmc = fjmc;
    }

    @Id
    @Column(name = "FJLJ")
    public String getFjlj() {
        return fjlj;
    }

    public void setFjlj(String fjlj) {
        this.fjlj = fjlj;
    }

    @Basic
    @Column(name = "XG_SJ")
    public Timestamp getXgSj() {
        return xgSj;
    }

    public void setXgSj(Timestamp xgSj) {
        this.xgSj = xgSj;
    }

    @Basic
    @Column(name = "LR_SJ")
    public Timestamp getLrSj() {
        return lrSj;
    }

    public void setLrSj(Timestamp lrSj) {
        this.lrSj = lrSj;
    }

    @Basic
    @Column(name = "XGRY_ID")
    public String getXgryId() {
        return xgryId;
    }

    public void setXgryId(String xgryId) {
        this.xgryId = xgryId;
    }

    @Basic
    @Column(name = "LRRY_ID")
    public String getLrryId() {
        return lrryId;
    }

    public void setLrryId(String lrryId) {
        this.lrryId = lrryId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YyGnJrJsSmEntity that = (YyGnJrJsSmEntity) o;
        return Objects.equals(gnId, that.gnId) &&
                Objects.equals(fjmc, that.fjmc) &&
                Objects.equals(fjlj, that.fjlj) &&
                Objects.equals(xgSj, that.xgSj) &&
                Objects.equals(lrSj, that.lrSj) &&
                Objects.equals(xgryId, that.xgryId) &&
                Objects.equals(lrryId, that.lrryId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(gnId, fjmc, fjlj, xgSj, lrSj, xgryId, lrryId);
    }
}
